package com.wtoip.core.vo;

import java.io.Serializable;
import java.util.List;

public class DataPage<T> implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//当前页数
	private Integer page;
	//数据容量
	private Integer length;
	//总数据量
	private Integer total;
	//数据集合
	private List<T> itemList;
	
	public DataPage() {
	}
	
	public DataPage(Page page, Integer total, List<T> itemList) {
		this.page = page.getPage();
		this.length = page.getLength();
		this.total = total;
		this.itemList = itemList;
	}
	
	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getLength() {
		return length;
	}

	public void setLength(Integer length) {
		this.length = length;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public List<T> getItemList() {
		return itemList;
	}

	public void setItemList(List<T> itemList) {
		this.itemList = itemList;
	}
}
